﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XF.Meeting.Entity.DTO
{
    public class MeetingOrder
    {
        public string itemId { get; set; } = "";
        public string MasterItemId { get; set; } = "";

        public int loginuserid { get; set; }
        public int RID { get; set; } = 0;
        public bool IsPushEntWechat { get; set; } = false;
        public DateTime ToDayEnd { get; set; } 
        public int CycleMeetType { get; set; } = 0;
        public string CycleMeetGuid { get; set; } 
        public string CostomCRoom { get; set; } = "";
        public int CRoomID { get; set; }
        public int ID { get; set; }
        /// <summary>
        /// 会议ID
        /// </summary>
        public int CInfoID { get; set; } 
        /// <summary>
        /// 会议室ID多个 格式：  1,2,3,4,
        /// </summary>
        public string CRoomIDs { get; set; } = "";
        /// <summary>
        /// 内部参会人员多个  格式：  1,2,3,4,
        /// </summary>
        public string ParticipantIDs { get; set; } = "";
        /// <summary>
        /// 创建者ID
        /// </summary>
        public int CreatorID { get; set; }
        /// <summary>
        /// 会议主题
        /// </summary>
        public string ConferenceTheme { get; set; } = "";

        
        /// <summary>
        /// 日期(周期结束)
        /// </summary>
        public string EndDate { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public string Date { get; set; }
        /// <summary>
        /// 开始时间（小时：分钟）
        /// </summary>
        public string Begin { get; set; }
        /// <summary>
        /// 结束时间（小时：分钟）
        /// </summary>
        public string End { get; set; }
        /// <summary>
        /// 会议室类型
        /// </summary>
        public string CRoomTypes { get; set; } = "";
        /// <summary>
        /// 会议室密码
        /// </summary>
        public string PassWords { get; set; } = "";
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime BeginTime { get; set; }
        /// <summary>
        /// 结束时间
        /// 
        /// 
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 时长
        /// </summary>
        public int TimeLength { get; set; }
        /// <summary>
        /// 协调人
        /// </summary>
        public int Coordinator { get; set; }
        /// <summary>
        /// 主持人
        /// </summary>
        public int HostPerson { get; set; }
        /// <summary>
        /// 纪要人
        /// </summary>
        public int MinutesPerson { get; set; }
        /// <summary>
        /// 群组IDs
        /// </summary>
        public string GroupIDs { get; set; } = "";
        /// <summary>
        /// 外部参会人员
        /// </summary>
        public string Outsiders { get; set; } = "";
        /// <summary>
        /// 企业微信通知方式
        /// </summary>
        public int EnterWechatNotice { get; set; }
        /// <summary>
        /// 会议备注
        /// </summary>
        public string ConferenceRemark { get; set; } = "";
        /// <summary>
        /// 抄送人
        /// </summary>
        public string CopyIDs { get; set; } = "";
        /// <summary>
        /// 会议类型
        /// </summary>
        public int ConferenceType { get; set; }
        /// <summary>
        /// 纪要审批
        /// </summary>
        public bool IsMinutesApproval { get; set; } = true;
        /// <summary>
        /// 附件名称
        /// </summary>
        public string FileName { get; set; } = "";
        /// <summary>
        /// 附件地址
        /// </summary>
        public string FileUrl { get; set; } = "";
        /// <summary>
        /// 会议预约Or手动创建纪要
        /// </summary>
        public int CInfoOrMinutes { get; set; }
        /// <summary>
        ///会议是否签到
        /// </summary>
        public int IsSignIn { get; set; } = 0;
        public int State { get; set; } = 1;
        public int MinutesState { get; set; }
        /// <summary>
        /// 周期会议类型    0  天   1   特权管理员    2   城市管理员    3   系统管理员
        /// </summary>
        public int CycleType { get; set; } = 0;
        /// <summary>
        /// 用户区域ID
        /// </summary>
        public int UserRID { get; set; }

        public bool IsSubmitOnTime { get; set; }
        public int StrategyState { get; set; }

        public List<File> files { get; set; }
        public string ExchangeItemId { get; set; } = "";
        public int sourceType { get; set; } = 1;
        public int ItemSort { get; set; } = 0;
    }

    public class File
    {
        /// <summary>
        /// 附件名称
        /// </summary>
        public string FileName { get; set; } = "";
        /// <summary>
        /// 附件地址
        /// </summary>
        public string FileUrl { get; set; } = "";
    }
}
